package com.swg.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;

/**
 * @Author 【swg】.
 * @Date 2018/5/27 20:46
 * @DESC
 * @CONTACT 317758022@qq.com
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Person {
    @Value("hello")
    private String name;
    @Value("#{20-6}")
    private Integer age;
    @Value("${person.nickname}")
    private String nickname;
}
